﻿namespace ConditionTreeTestStand.Nodes
{
  public class ColumnViewModel
  {
    private readonly ConditionNodeViewModel _owner;
    private readonly Column _column;

    public string Name { get { return _column.Name; } }
    public ColumnViewModel(ConditionNodeViewModel owner, Column column)
    {
      _owner = owner;
      _column = column;
    }
    public void Select()
    {
      _owner.FirstOperand = _column;
    }
  }
}